export default {
    data () {
        return {
			AppNotificationCategory: "AppNotificationCategory",
			AskLeaveStatus: "AskLeaveStatus",
			AskLeaveType: "AskLeaveType",
			ExternalProvider: "ExternalProvider",
			DoorAccessType: "DoorAccessType",
			EmployeeIdentity: "EmployeeIdentity",
			MemberType: "MemberType",
            UserType: "UserType",
			StudentSchoolType: "StudentSchoolType"
        }
    },
    computed: {
		arrAppNotificationCategory() {
			// 发送通知的分类
			return this.getEnumConfigs(this.AppNotificationCategory).arrs
		},
		arrAskLeaveStatus() {
			// 请假状态
			return this.getEnumConfigs(this.AskLeaveStatus).arrs
		},
		arrAskLeaveType() {
			// 请假类型
			return this.getEnumConfigs(this.AskLeaveType).arrs
		},
		arrExternalProvider() {
			// 登录提供者
			return this.getEnumConfigs(this.ExternalProvider).arrs
		},
		arrDoorAccessType() {
			// 进入出去
			return this.getEnumConfigs(this.DoorAccessType).arrs
		},
		arrEmployeeIdentity() {
			// 员工身份类型
			return  this.getEnumConfigs(this.EmployeeIdentity).arrs
		},
		arrMemberType() {
			// 成员类别
			return  this.getEnumConfigs(this.MemberType).arrs
		},
        arrUserType() {
            // 用户类型
            return this.getEnumConfigs(this.UserType).arrs
        },
		arrStudentSchoolType() {
			// 住宿类型
			return this.getEnumConfigs(this.StudentSchoolType).arrs
		}
    },
    methods: {
		// 发送通知的分类
		valNotificationAskLeaveSubmited() {
		    // 请假申请
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AppNotificationCategory).objs, "AskLeaveSubmited", "value")
		},
		valNotificationAskLeaveApproved() {
		    // 请假审批
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AppNotificationCategory).objs, "AskLeaveApproved", "value")
		},
		valNotificationAskLeaveCanceled() {
		    // 撤销请假
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AppNotificationCategory).objs, "AskLeaveCanceled", "value")
		},
		
		// 请假状态
		valAskPending() {
		    // 待审核
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AskLeaveStatus).objs, "Pending", "value")
		},
		valAskPassed() {
		    // 已通过
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AskLeaveStatus).objs, "Passed", "value")
		},
		valAskRefused() {
		    // 已拒绝
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AskLeaveStatus).objs, "Refused", "value")
		},
		valAskCanceled() {
		    // 已撤销
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AskLeaveStatus).objs, "Canceled", "value")
		},
		
		// 请假类型
		valAskTypeSick() {
		    // 病假
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AskLeaveType).objs, "Sick", "value")
		},
		valAskTypeMatter() {
		    // 事假
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AskLeaveType).objs, "Matter", "value")
		},
		valAskTypeAffairs() {
		    // 公假
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AskLeaveType).objs, "Affairs", "value")
		},
		valAskTypeOther() {
		    // 其它
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.AskLeaveType).objs, "Other", "value")
		},
		
		// 登录提供者
		valWechatMP() {
		    // 待审核
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.ExternalProvider).objs, "WechatMP", "value")
		},
		
		// 进出类型
		valDoorAccessTypeOut() {
		    // 出去
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.DoorAccessType).objs, "Out", "value")
		},
		valDoorAccessTypeIn() {
		    // 进入
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.DoorAccessType).objs, "In", "value")
		},
		valDoorAccessTypeUnknown() {
		    // 未知
		    return this.getEnumConfigsItem(this.getEnumConfigs(this.DoorAccessType).objs, "Unknown", "value")
		},
		
		// 员工身份类型
		valEmployeeIdentityClassTeacher() {
			// 班主任：1
			return this.getEnumConfigsItem(this.getEnumConfigs(this.EmployeeIdentity).objs, "ClassTeacher", "value")
		},
		
		// 成员类别
		valMemberTypeStudent() {
			// 学生：1
			return this.getEnumConfigsItem(this.getEnumConfigs(this.MemberType).objs, "Student", "value")
		},
		valMemberTypeEmployee() {
			// 老师：2
			return this.getEnumConfigsItem(this.getEnumConfigs(this.MemberType).objs, "Employee", "value")
		},
		
        // 用户类型
        valAdmin() {
            // 管理员
            return this.getEnumConfigsItem(this.getEnumConfigs(this.UserType).objs, "Admin", "value")
        },
        valMember() {
            // 前台用户
            return this.getEnumConfigsItem(this.getEnumConfigs(this.UserType).objs, "Member", "value")
        },
		
		// 住宿类型
		valBoardAtSchool() {
			// 住校
			return this.getEnumConfigsItem(this.getEnumConfigs(this.BoardAtSchool).objs, "StudentSchool", "value")
		},
		valWalkthrough() {
			// 走读
			return this.getEnumConfigsItem(this.getEnumConfigs(this.Walkthrough).objs, "StudentSchool", "value")
		}
    }
  }
  
  
  